export default {
  namespaced: true,
  state () {
    return {
      // 用户信息
      profile: {
        id: 10,
        avatar: '',
        nickname: '',
        account: '',
        mobble: '',
        token: ''
      },
      redirectpath: '/'
    }
  },
  mutations: {
    setUser (state, data) {
      state.profile = data
    },
    changeredirect (state, redirectpath) {
      state.redirectpath = redirectpath
    }
  }
}
